import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;

public class DemoColaction {
    public static void main(String[] args) {
        //prepare poker
        String[] flower ={"♥","♣","♠","♦"};
        String[] number ={"2","A","K","Q","J","10","9","8","7","6","5","4","3"};
        ArrayList<String> pokerList = new ArrayList<>();//all poker
        for(String a:flower){
            for(String b:number){
                pokerList.add(b+a);
            }
        }
        pokerList.add("Big joker");
        pokerList.add(("Small joker"));
        //make poker mass
        Collections.shuffle(pokerList);
        // System.out.println(pokerList);
       //give people poker
       ArrayList<String> one = new ArrayList<>();
       ArrayList<String> two = new ArrayList<>();
       ArrayList<String> three = new ArrayList<>();
       ArrayList<String> last = new ArrayList<>();
       for (int i = 0; i< pokerList.size(); i++) {
           if(i <=51){
            if(i%3==0)
            one.add(pokerList.get(i));
           else if(i%3==1)
            two.add(pokerList.get(i));
           else if(i%3==2)
            three.add(pokerList.get(i));
           else
            last.add(pokerList.get(i));
           }          
       }

       System.out.println(one);
       System.out.println(two);
       System.out.println(three);
       System.out.println(last);
    }
}